package cz.spock.core.entity.acl;

import javax.persistence.Entity;
import javax.persistence.Id;

import com.googlecode.objectify.Key;
import com.googlecode.objectify.annotation.Cached;

import cz.spock.core.entity.Account;

/**
 * account to role mapping
 * 
 * @author miso
 *
 */
@Entity
@Cached
public class AccountRole {
    
    @Id
    private Long id;
    private Key<Account> account;
    private Key<Role> role;
    
    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public Key<Account> getAccount() {
        return account;
    }
    public void setAccount(Key<Account> account) {
        this.account = account;
    }
    public Key<Role> getRole() {
        return role;
    }
    public void setRole(Key<Role> role) {
        this.role = role;
    }

}
